package com.jtbd.config;

import com.jtbd.domain.Organization;
import com.jtbd.service.OrganizationService;
import jakarta.annotation.PostConstruct;
import jakarta.annotation.Resource;
import lombok.Getter;
import org.springframework.context.annotation.Configuration;

@Configuration
@Getter
public class OrganizationConfig {
    @Resource
    private OrganizationService organizationService;
    private Organization jtbdOrganization;

    @PostConstruct
    public void init() {
        jtbdOrganization = organizationService.getJtbdOrganization();
    }
}
